import 'dart:convert';

import 'package:mziot/generated/json/base/json_field.dart';
import 'package:mziot/generated/json/cmd_entity.g.dart';

@JsonSerializable()
class CmdEntity {
  String? nodeDeviceId;
  Map<String, List<String>>? commandMap;
  int? current;

  CmdEntity();

  factory CmdEntity.fromJson(Map<String, dynamic> json) => $CmdEntityFromJson(json);

  Map<String, dynamic> toJson() => $CmdEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
